<?php get_header(); ?>
		<div class="wrapper-content">
			<div class="wrapper-slideshow wrapper-img-single">
				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
					<iframe style="margin-left: 128px;" width="622" height="350" src="<?php echo get('video_link'); ?>" frameborder="0" allowfullscreen></iframe>
				<?php endwhile; endif; ?>
			</div>
			<div class="content single">
				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
					<div class="title-post">
						<div><?php echo get_the_title(); ?></div>
						<div class="share"><div class="addthis_toolbox addthis_default_style addthis_" addthis:url="http://josementor.com.br/site/biografia/" addthis:title="Biografia de José Mentor"><a class="addthis_button_facebook at300b" title="Facebook" href="#"><span class="at16nc at300bs at15nc at15t_facebook at16t_facebook"><span class="at_a11y">Share on facebook</span></span></a><a class="addthis_button_twitter at300b" title="Tweet" href="#"><span class="at16nc at300bs at15nc at15t_twitter at16t_twitter"><span class="at_a11y">Share on twitter</span></span></a><a class="addthis_button_email at300b" target="_blank" title="E-mail" href="#"><span class="at16nc at300bs at15nc at15t_email at16t_email"><span class="at_a11y">Share on email</span></span></a><a class="addthis_button_pinterest_share at300b" target="_blank" title="Pinterest" href="#"><span class="at16nc at300bs at15nc at15t_pinterest_share at16t_pinterest_share"><span class="at_a11y">Share on pinterest_share</span></span></a><a class="addthis_button_compact at300m" href="#"><span class="at16nc at300bs at15nc at15t_compact at16t_compact"><span class="at_a11y">More Sharing Services</span></span></a></div>
						</div>
						<span class="clear"></span>
					</div>
					<span class="clear"></span>
					<div class="wrapper-infos-post">
						<div class="data-post"><?php echo get_the_date(); ?></div>
						<div class="categoria-post">
							<?php
								$categories = get_the_category();
								$separator = ' | ';
								$output = '';
								if($categories){
									foreach($categories as $category) {
										$output .= '<a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator;
									}
								echo trim($output, $separator);
								}
							?>
						</div>
						<span class="clear"></span>
					</div>
					<span class="clear"></span>
					<div class="content-post">
					<?php $slideshow=get('slideshow_ativar');  if($slideshow){ ?>
						<ul id="postcarousel" class="jcarousel-skin-post">
							<?php $imagens=get_field('slideshow_imagem'); $count=count($imagens);
							for ($i=1; $i <= $count ; $i++) { ?>
							 	<li><img src="<?php echo get('slideshow_imagem',1,$i); ?>"></li>
							<?php } ?>
						</ul>
					<?php } ?>
					<?php the_content(); ?>
					</div>	
				<?php endwhile; endif; ?>
			</div>
		</div><!--/wrapper-content-->
	</div><!--/container-->
<?php get_footer(); ?>